# @Filename:    StudentManager
# @Author:      王佳伟
# @Time:        2025-03-03 13:57
# @Describe:    管理类

class StudentManager:
    def __init__(self):
        self.students = []

    def add_student(self, student):
        self.students.append(student)

    def delete_student(self, name):
        self.students = [s for s in self.students if s.name != name]

    def find_student(self, name):
        for student in self.students:
            if student.name == name:
                return student
        return None
